<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
  </head>
  <body>
    <input type="button" value="发送info请求" onclick="sendInfoReq()">
    <input type="button" value="发送list请求" onclick="sendListReq()">
  </body>
  
  <script>
    function sendInfoReq() {
      fetch('/api/info').then(data => {
        console.log(data);
      });
    }
    
    function sendListReq() {
      fetch('/api/list').then(data => {
        console.log(data);
      });
    }
  </script>
</html>